﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Shipment.aspx.cs" Inherits="Shipment" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
    <table style="width: 98%;" cellpadding="5px" cellspacing="10px">
        <tr>
            <td align="left">
                <asp:Label ID="Label1" runat="server" Text="产品名称："></asp:Label>
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
                    ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:Button ID="btnQuery" runat="server" CssClass="NormalButtom" Text="查 询" 
                    onclick="btnQuery_Click" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="gvInventory" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" GridLines="None" 
                    onselectedindexchanging="gvInventory_SelectedIndexChanging">
                    <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                        <asp:BoundField DataField="Product_Name" HeaderText="产品" />
                        <asp:BoundField DataField="Cur_Warehouse" HeaderText="仓库编码" />
                        <asp:BoundField DataField="Cur_Location" HeaderText="仓位" />
                        <asp:BoundField DataField="Cur_Bin" HeaderText="储位" />
                        <asp:BoundField DataField="Qty" HeaderText="数量" />
                        <asp:CommandField HeaderText="选择" SelectText="出库" ShowSelectButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="plShipment" runat="server" Visible="False">
                    <asp:Label ID="Label3" runat="server" Text="出库数量："></asp:Label>
                    <asp:TextBox ID="txtShipQty" runat="server" Width="73px"></asp:TextBox>
                    <br />
                    <br />
                    <asp:Label ID="Label6" runat="server" Text="入库类型："></asp:Label>
                    <asp:DropDownList ID="drpMovementType" runat="server">
                    </asp:DropDownList>
                    <br />
                    <br />
                    <asp:Button ID="btnShip" runat="server" CssClass="NormalButtom" Text="出 库" 
                        onclick="btnShip_Click" />
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td>
            </td>
        </tr>
    </table>
</asp:Content>
